#!/bin/bash

python -m compileall ./app

rm -rf /web/deploy/build/shitouren/*

mkdir -p /web/deploy/build/shitouren/config
mkdir -p /web/deploy/build/shitouren/controls
mkdir -p /web/deploy/build/shitouren/tasks
mkdir -p /web/deploy/build/shitouren/test_script
mkdir -p /web/deploy/build/shitouren/utils
mkdir -p /web/deploy/build/shitouren/views
mkdir -p /web/deploy/build/shitouren/views/cms

mv ./app/*.pyc           /web/deploy/build/shitouren/
mv ./app/config/*.pyc    /web/deploy/build/shitouren/config/
mv ./app/controls/*.pyc  /web/deploy/build/shitouren/controls/
mv ./app/tasks/*.pyc     /web/deploy/build/shitouren/tasks/
mv ./app/test_script/*.pyc      /web/deploy/build/shitouren/test_script/
mv ./app/utils/*.pyc     /web/deploy/build/shitouren/utils/
mv ./app/views/*.pyc     /web/deploy/build/shitouren/views/
mv ./app/views/cms/*.pyc /web/deploy/build/shitouren/views/cms/

